package base;

import java.util.List;

import org.junit.Test;

import com.mini.excel.ExcelUtils;

public class Excel2Module2 {

    @Test
    public void excel2Object2() {

        String path = "C:\\Users\\sxjun1904\\Desktop\\母表（工作指标体系）-定稿.xlsx";
        try {

            // 1)
            // 不基于注解,将Excel内容读至List<List<String>>对象内
            List<List<String>> lists = ExcelUtils.getInstance().readExcel2List(path);
            System.out.println("读取Excel至String数组：");
            for (List<String> list : lists) {
                System.out.print(list);
                System.out.println(list.size());
            }

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
